import layout from "@/views/partner/layout";
export default [
  {
    name: "partner-login",
    path: "/partner/login/:token?",
    component: () => import("@/views/partner/login.vue"),
    meta: {
      title: "合伙人登录"
    }
  },
  {
    name: "partner-open",
    path: "/partner/open/:code/:name?",
    component: () => import("@/views/partner/open.vue"),
    meta: {
      title: "接受邀请"
    }
  },
  {
    name: "partner-start",
    path: "/partner/start/:token?",
    component: () => import("@/views/partner/start.vue"),
    meta: {
      title: "激活合伙人"
    }
  },
  {
    name: "partner-download",
    path: "/partner/download",
    component: () => import("@/views/partner/download.vue"),
    meta: {
      title: "加入小灵狗出行"
    }
  },
  {
    name: "partner-rule",
    path: "/partner/rule",
    component: () => import("@/views/partner/rule.vue"),
    meta: {
      title: "赚钱秘籍"
    }
  },
  {
    name: "partner",
    path: "/partner",
    redirect: "/partner/index",
    component: layout,
    children: [
      {
        name: "partner-index",
        path: "index",
        component: () => import("@/views/partner/index.vue"),
        meta: {
          title: "合伙人中心"
        }
      },

      {
        name: "partner-invite",
        path: "invite",
        component: () => import("@/views/partner/invite.vue"),
        meta: {
          title: "邀请好友"
        }
      },
      {
        name: "partner-card",
        path: "card",
        component: () => import("@/views/partner/card.vue"),
        meta: {
          title: "邀请卡"
        }
      },

      {
        name: "partner-fans",
        path: "fans",
        component: () => import("@/views/partner/fans.vue"),
        meta: {
          title: "粉丝管理"
        }
      },
      {
        name: "partner-detail",
        path: "detail",
        component: () => import("@/views/partner/detail.vue"),
        meta: {
          title: "金币明细"
        }
      }
    ]
  }
];
